package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.guguoxunbao.GuGuoXunBaoClueComment;
import com.yanqu.road.entity.activity.guguoxunbao.GuGuoXunBaoPlace;
import com.yanqu.road.entity.activity.guguoxunbao.GuGuoXunBaoTreasure;
import com.yanqu.road.entity.activity.guguoxunbao.GuGuoXunBaoUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class GuGuoXunBaoBusiness {

    public static GuGuoXunBaoUserData getUserData(long userId, int activityId) {
        return DaoHelper.getGuGuoXunBaoUserDataDaoImpl().getGuGuoXunBaoUserData(activityId, userId);
    }

    public static Map<Integer, GuGuoXunBaoClueComment> getClueCommentMap(int activityId) {
        return DaoHelper.getGuGuoXunBaoConfigDaoImpl().getGuGuoXunBaoClueComment(activityId);
    }

    public static Map<Integer, GuGuoXunBaoPlace> getPlaceMap(int activityId) {
        return DaoHelper.getGuGuoXunBaoConfigDaoImpl().getGuGuoXunBaoPlace(activityId);
    }

    public static Map<Integer, GuGuoXunBaoTreasure> getTreasureMap(int activityId) {
        return DaoHelper.getGuGuoXunBaoConfigDaoImpl().getGuGuoXunBaoTreasure(activityId);
    }

    public static boolean addGuGuoXunBaoUserData(GuGuoXunBaoUserData userData) {
        return DaoHelper.getGuGuoXunBaoUserDataDaoImpl().add(userData);
    }

    public static boolean updateGuGuoXunBaoUserData(GuGuoXunBaoUserData userData) {
        return DaoHelper.getGuGuoXunBaoUserDataDaoImpl().update(userData);
    }
}
